const { mongoose } = require('../module/db')

const Schema = mongoose.Schema

const RouterType = {
    path: String,
    title: String,
    key: String,
    router_id: {
        type: mongoose.Types.ObjectId,
        ref: "type"
    }
}

const RouterModel = mongoose.model('router', new Schema(RouterType), 'router')

module.exports = RouterModel
